package aufgabe2;

import java.util.ArrayList;
import java.util.GregorianCalendar;

public class Exam extends SubscribeableImpl implements Subscribeable {
    
    private GregorianCalendar date;
    
    public Exam(int id, String title, GregorianCalendar subscribeStart,
            GregorianCalendar subscribeEnd, GregorianCalendar unsubscribeEnd,
            ArrayList<Course> requirements, int maxSeats, GregorianCalendar date) {
        super(id, title, subscribeStart, subscribeEnd, unsubscribeEnd, requirements, maxSeats);
        this.date = date;
    }
    
    /**
     * @return the date of the exam
     */
    public GregorianCalendar getDate(){
        return date;
    }
}
